//
//  VCOfDengLu.m
//  SeeTheWorld
//
//  Created by dllo on 16/3/3.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "VCOfDengLu.h"
#import "PCH.pch"
#import <UIImageView+WebCache.h>


@interface VCOfDengLu ()

@end

@implementation VCOfDengLu

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor colorWithRed:43 / 256.f green:115 / 256.f blue:217 / 256.f alpha:1];
    
    UIButton *buttonOfFanHui = [UIButton buttonWithType:UIButtonTypeCustom];
    [self.view addSubview:buttonOfFanHui];
    [buttonOfFanHui setBackgroundImage:[UIImage imageNamed:@"iconfont-fanhui-2"] forState:UIControlStateNormal];
    buttonOfFanHui.frame = CGRectMake(20, 30, 30, 30);
    [buttonOfFanHui addTarget:self action:@selector(fanHui) forControlEvents:UIControlEventTouchUpInside];
    
    UILabel *labelOfHello = [[UILabel alloc] initWithFrame:CGRectMake(50, 90, WIDTH - 100, 40)];
    [self.view addSubview:labelOfHello];
    [labelOfHello release];
    labelOfHello.textAlignment = 1;
    
    NSString *originStr = @"SeeTheWorld";
    NSMutableAttributedString *attributedStr01 = [[NSMutableAttributedString alloc] initWithString: originStr];
    [attributedStr01 addAttribute: NSFontAttributeName value: [UIFont fontWithName: @"Zapfino" size: 20] range:NSMakeRange(0, originStr.length)];
    [attributedStr01 addAttribute: NSForegroundColorAttributeName value: [UIColor redColor] range: NSMakeRange(0, 4)];
    [attributedStr01 addAttribute: NSForegroundColorAttributeName value: [UIColor greenColor] range: NSMakeRange(4, 3)];
    [attributedStr01 addAttribute:NSStrokeWidthAttributeName value:@(-5) range:NSMakeRange(0, originStr.length)];
    labelOfHello.attributedText = attributedStr01;
    
    UIButton *buttonOfWeiXin = [UIButton buttonWithType:UIButtonTypeCustom];
    [self.view addSubview:buttonOfWeiXin];
    buttonOfWeiXin.frame = CGRectMake(20, 140, (WIDTH - 80) / 3, (WIDTH - 80) / 3);
    [buttonOfWeiXin setImage:[UIImage imageNamed:@"weixin"] forState:UIControlStateNormal];
 
    UIButton *buttonOfWeiBo = [UIButton buttonWithType:UIButtonTypeCustom];
    [self.view addSubview:buttonOfWeiBo];
    buttonOfWeiBo.frame = CGRectMake(20 + (WIDTH - 80) / 3 + 20, 140, (WIDTH - 80) / 3, (WIDTH - 80) / 3);
    [buttonOfWeiBo setImage:[UIImage imageNamed:@"weibo"] forState:UIControlStateNormal];
    
    UIButton *buttonOfQQ = [UIButton buttonWithType:UIButtonTypeCustom];
    [self.view addSubview:buttonOfQQ];
    buttonOfQQ.frame = CGRectMake(20 + (WIDTH - 80) / 3 + 20 + (WIDTH - 80) / 3 + 20, 140, (WIDTH - 80) / 3, (WIDTH - 80) / 3);
    [buttonOfQQ setImage:[UIImage imageNamed:@"QQ"] forState:UIControlStateNormal];
    
    UILabel *labelOfGengDuo = [[UILabel alloc] initWithFrame:CGRectMake(WIDTH / 3, 140 + (WIDTH - 80) / 3 + 10, WIDTH / 3, 40)];
    [self.view addSubview:labelOfGengDuo];
    [labelOfGengDuo release];
    labelOfGengDuo.text = @"更多社交平台";
    labelOfGengDuo.textColor = [UIColor whiteColor];
    labelOfGengDuo.textAlignment = 1;
    labelOfGengDuo.layer.borderWidth = 1;
    labelOfGengDuo.layer.borderColor = [[UIColor whiteColor]CGColor];
    labelOfGengDuo.layer.cornerRadius = 20;
    labelOfGengDuo.layer.masksToBounds = YES;
    
    UILabel *labelOfPhone = [[UILabel alloc] initWithFrame:CGRectMake(20, 140 + (WIDTH - 80) / 3 + 50 + 30 + 50, WIDTH - 40, 40)];
    [self.view addSubview:labelOfPhone];
    [labelOfPhone release];
    labelOfPhone.text = @"通过手机号码登录";
    labelOfPhone.textColor = [UIColor colorWithRed:43 / 256.f green:115 / 256.f blue:217 / 256.f alpha:1];
    labelOfPhone.textAlignment = 1;
    labelOfPhone.layer.borderWidth = 1;
    labelOfPhone.layer.borderColor = [[UIColor whiteColor]CGColor];
    labelOfPhone.layer.cornerRadius = 20;
    labelOfPhone.layer.masksToBounds = YES;
    labelOfPhone.backgroundColor = [UIColor whiteColor];
    
    UILabel *labelOfs = [[UILabel alloc] initWithFrame:CGRectMake(20, 140 + (WIDTH - 80) / 3 + 50 + 30 + 50 + 40 + 10, WIDTH - 40, 40)];
    [self.view addSubview:labelOfs];
    [labelOfs release];
    labelOfs.text = @"通过See The World帐号登录";
    labelOfs.textColor = [UIColor whiteColor];
    labelOfs.textAlignment = 1;
    labelOfs.layer.borderWidth = 1;
    labelOfs.layer.borderColor = [[UIColor whiteColor]CGColor];
    labelOfs.layer.cornerRadius = 20;
    labelOfs.layer.masksToBounds = YES;
  
}

/** 返回 */
- (void)fanHui {
    [self dismissViewControllerAnimated:YES completion:^{
        
        
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
